import classNames from 'classnames'
type Props = {
  type: string
  onClick?: () => void
  className?: string
}
export default function Icon({ type, onClick, className }: Props) {
  return (
    <svg
      className={classNames('icon', className)}
      aria-hidden="true"
      onClick={onClick}
    >
      <use xlinkHref={`#${type}`}></use>
    </svg>
  )
}
